package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.HashMap;

@ToString
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class Classinfo {
    private Long id;

    private Integer bb;
    private String nn;

    private String name;

    private Integer number;

    private Long employee_id;

    public String getJson(){
        HashMap<Object, Object> map = new HashMap<>();
        map.put("id", this.id);
        map.put("name", this.name);
        map.put("number", this.number);
        map.put("employee_id", this.employee_id);
        return (JSON.toJSONString(map));
    }
}